package com.visionblue.business.ship.base
import android.content.Context

/**
 * @author: xlh
 * @date: 2020-04-10 1:52 PM
 * @desc:
 */
abstract class BaseVMFragment<VM : BaseViewModel> : BaseFragment() {

    protected lateinit var mViewModel: VM

    override fun onAttach(context: Context) {
        super.onAttach(context)
        mViewModel = provideVM()
    }

    abstract fun provideVM(): VM


}